﻿using AuApmt.Models.DbModels.Abstraction;
using System.ComponentModel.DataAnnotations;

namespace AuApmt.Models.DbModels
{
    /// <summary>
    /// 科目
    /// </summary>
    public class Subject : IDbModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 科目名称
        /// </summary>
        [MaxLength(16)]
        public string? Name { get; set; }
        /// <summary>
        /// 科目类别（来自配置文件）（0即不指定）
        /// </summary>
        public byte CategoryId { get; set; }
        /// <summary>
        /// 科目难度级别（来自配置文件）（0即不指定）
        /// </summary>
        public byte Difficulty { get; set; }
        /// <summary>
        /// 科目简介
        /// </summary>
        [MaxLength(256)]
        public string? Intro { get; set; }
        /// <summary>
        /// 科目的默认客户容量
        /// </summary>
        public int SlotsDefault { get; set; }
        public DateTime LastActive { get; set; }
        public bool Deleted { get; set; }
    }
}
